package com.bq.server.constant;

import java.time.ZoneId;
import java.time.format.DateTimeFormatter;

/**
 * 日期格式化常量
 * @author: ChenSH
 * @date: Create by in 下午6:30 2018/6/26
 */
public interface DateFormatterConstant {

    String DEFAULT_DATE_FORMAT = "yyyy-MM-dd";

    String DEFAULT_TIME_FORMAT = "HH:mm:ss";

    String DEFAULT_DATE_TIME_FORMAT = "yyyy-MM-dd HH:mm:ss";

    String DATE_TIME_FORMAT_ZH_CN_MINUTE = "yyyy年MM月dd日HH:mm";

    ZoneId SYSTEM_DEFAULT_ZONE_ID = ZoneId.systemDefault();

    DateTimeFormatter DEFAULT_DATE_FORMATTER = DateTimeFormatter.ofPattern(DEFAULT_DATE_FORMAT);

    DateTimeFormatter DEFAULT_TIME_FORMATTER = DateTimeFormatter.ofPattern(DEFAULT_TIME_FORMAT);

    DateTimeFormatter DEFAULT_DATE_TIME_FORMATTER = DateTimeFormatter.ofPattern(DEFAULT_DATE_TIME_FORMAT);

    DateTimeFormatter COMPACT_DATE_FORMATTER = DateTimeFormatter.ofPattern("yyyyMMdd");

    DateTimeFormatter DATE_TIME_WITHOUT_SECOND_FORMATTER = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm");

    DateTimeFormatter DATE_TIME_ISO8601_FORMATTER = DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss");

    DateTimeFormatter DATE_TIME_WITHOUT_SECOND_FORMATTER_ZH_CN = DateTimeFormatter.ofPattern("yyyy年MM月dd日 HH时mm分");

    DateTimeFormatter DATE_TIME_FORMAT_ZH_CN_MINUTE_FORMATTER = DateTimeFormatter.ofPattern(DATE_TIME_FORMAT_ZH_CN_MINUTE);


}
